package com.qf.day03.method;
import java.util.Scanner;
/**
 * 求立方体表面积
 */
public class SurfaceArea {

    public static void cuboid(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入立方体的长:");
        int a=scanner.nextInt();
        System.out.println("请输入立方体的宽:");
        int b=scanner.nextInt();
        System.out.println("请输入立方体的高:");
        int c=scanner.nextInt();
        int S;
        S=(a*b+a*c+b*c)*2;
        System.out.println("长方体的表面积为:"+S);
    }
}
